package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.MallOrderReconsider;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.dto.MallOrderReconsiderAdminDetailDTO;
import com.sc.nft.entity.dto.MallOrderReconsiderAdminPageDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 订单复议记录 Mapper 接口
 * </p>
 *
 * @author ligen
 * @since 2024-01-17
 */
public interface MallOrderReconsiderMapper extends BaseMapper<MallOrderReconsider> {


    /**
     * 订单复议列表
     *
     * @param page
     * @param daoId
     * @param startTime
     * @param endTime
     * @return
     */
    Page<MallOrderReconsiderAdminPageDTO> getPage(Page page, @Param("daoId") Long daoId, @Param("startTime") Date startTime, @Param("endTime") Date endTime
            , @Param("orderNo") String orderNo);

    /**
     * 获取复议详情
     *
     * @param id
     * @return
     */
    MallOrderReconsiderAdminDetailDTO getDetail(@Param("id") Long id);
}
